<?php echo script::add('jquery'); ?>
<script type="text/javascript">$(document).ready(function(){$('#submit_button').click(function(){var list_num=$('#list_num_box').val();if(list_num==''){alert('显示文章数不能为空!');$('#list_num_box').focus();return false;}$.post('<?php echo $this->get_action_url('ajax_article'); ?>', {list_num:list_num}, function(data){switch(data){case '101':alert('恭喜!执行成功');location.reload();break; case '100':alert('对不起,程序执行失败,请重新操作');break;}});});});</script>
<table width="800" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" align="left">>><?php echo $site_name; ?></td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="0">
          <tr>
            <td width="180" height="40" align="center">一页显示最多文章数：</td>
            <td><?php echo html::text(array('name'=>'max_list_num', 'value'=>$config_data['max_list_num'], 'id'=>'list_num_box')); ?></td>
          </tr>
          <tr>
            <td height="40" colspan="2" align="center"><?php echo html::button(array('name'=>'submit_button', 'value'=>'设置', 'id'=>'submit_button')); ?></td>
          </tr>
        </table></td>
      </tr>
</table>